<!--
 * @Description: 过渡
 * @Author: charles
 * @Date: 2021-08-17 11:12:49
 * @LastEditors: charles
 * @LastEditTime: 2021-08-17 11:25:27
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>过渡</title>
  <style>
    .box {
      width: 300px;
      height: 300px;
      background-color: lightcoral;
      cursor: pointer;
      margin: 100px auto;

      transition: transform,background-color 2s,2s 0s linear;
    }

    .box:hover {
      background-color: #f4f4f4;
      transform: scale(1.2);
      /* width: 600px; */
      /* transition-property: width;
      transition-duration: 2s;
      transition-delay: 0;
      transition-timing-function: linear; */
    }
  </style>
</head>
<body>
  <div class="box"></div>
</body>
</html>
